home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer: Getting Started / Internet Surfer - Getting Started (Wayzata Technology)(7231)(1995).bin / pc / textfile / faqs / fonts_fa / part4 < prev    next >
Encoding:
Internet Message Format  |  1995-01-01  |  16.9 KB

  1. Xref: bloom-picayune.mit.edu comp.fonts:5970 news.answers:3317
  2. Path: bloom-picayune.mit.edu!snorkelwacker.mit.edu!news.media.mit.edu!micro-heart-of-gold.mit.edu!wupost!usc!rpi!zaphod.mps.ohio-state.edu!caen!nic.umass.edu!dime!dime.cs.umass.edu!walsh
  3. From: walsh@cs.umass.edu (Norman Walsh)
  4. Newsgroups: comp.fonts,news.answers
  5. Subject: comp.fonts FAQ: part 4 of 5
  6. Summary: This posting answers frequently asked questions about fonts.
  7.          It addresses both general font questions and questions that
  8.      are specific to a particular platform.
  9. Message-ID: <WALSH.92Oct2140622@ibis.cs.umass.edu>
  10. Date: 2 Oct 92 18:06:22 GMT
  11. Expires: 6 Nov 92 00:00:00 GMT
  12. References: <9210021355.WW15298@cs.umass.EDU>
  13. Sender: news@dime.cs.umass.edu
  14. Reply-To: walsh@cs.umass.edu (Norm Walsh)
  15. Followup-To: poster
  16. Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
  17. Lines: 425
  18. Approved: news-answers-request@MIT.Edu
  19.  
  20. Archive-Name: fonts-faq/part4
  21. Version: 1.0.0
  22.  
  23. --- [cut here] --- FAQ for comp.fonts: section 2, part 2 of 2 ---
  24.  
  25.  
  26. FAQ for comp.fonts: Part VIII: Font utilities
  27.  
  28. Version 1.0.0, Release 02OCT92
  29.  
  30.  
  31. This section is divided into the following topics:
  32.  
  33. 0.  Notes about the utilities
  34. 1.  PS2PK
  35. 2.  TeX Utilities
  36. 3.  MFPic
  37. 4.  GNU Font Utilities
  38. 5.  Font Editors
  39. 6.  t1utils
  40.  
  41. ------------------------------------------------------------------------------
  42.  
  43. 0. Notes about the utilities
  44.  
  45.    I have just started collecting information about font utilities.  I 
  46.    will gladly add any information that you can pass my way.  Please send
  47.    your submissions to norm <walsh@cs.umass.edu>.  
  48.  
  49.    I would appreciate it if you could include a paragraph or so of description
  50.    and the appropriate site/filename for retrieval.
  51.  
  52. 1. PS2PK version 1.2
  53.  
  54.   PS2PK is a utility for converting Type1 postscript fonts into TeX PK files.
  55.   The source code is distributed and it has been compiled for both *nix boxes
  56.   and MS-DOS based machines.
  57.  
  58.   Here is the original announcement:
  59.  
  60.                             Ps2pk-1.2 available
  61.                             -------------------
  62.                                  (June 1992)
  63.     
  64.     Version 1.2 of ps2pk is now available on:
  65.        ftp.urc.tue.nl (address: 131.155.2.79)
  66.        directory:    /pub/tex
  67.        files:        ps2pk12.README         (  1k)    This file
  68.                      ps2pk12.tar.Z          (391k)    Sources
  69.                      ps2pk386.zip           (232k)    MSDOS executables
  70.                      utopia.tar.Z           (342k)    Adobe Utopia font family
  71.                      courier.tar.Z          (207k)    IBM Courier font family
  72.     
  73.        For people having difficulties in handling UNIX `.tar.Z' format I
  74.        have made some UNIX tools (only executables) available in:
  75.        directories:  /pub/unixtools/dos
  76.                      /pub/unixtools/vms
  77.     
  78.        See the system specific TARZ file for some help.
  79.     
  80.        Ftp.urc.tue.nl can not handle E-mail requests. But sites are free
  81.        to put the ps2pk12 stuff on any server that can.
  82.     
  83.     When do you need ps2pk?
  84.     ----------------------
  85.     Ps2pk is a tool that converts a PostScript type1 font into a corres-
  86.     ponding TeX PK font.  The tool is especially interesting if you want
  87.     to use fully hinted type1 fonts in your DVI previewer (instead of the
  88.     unhinted type1 fonts currently used in GhostScript) or on a printer
  89.     that has no PostScript interpreter.
  90.     
  91.     In order to use the ps2pk generated fonts your driver and previewer need
  92.     to support virtual fonts.  The reason is that PostScript fonts and TeX
  93.     fonts do have a different font encoding and handle ligatures in a
  94.     different way.  With virtual fonts the PostScript world (encoding +
  95.     ligatures) can be mapped to the old style TeX world on which the current
  96.     plain macro packages still are based (despite the fact that TeX3.0 can
  97.     handle 8bits).
  98.     
  99.     It is also possible to use the ps2pk generated PK fonts directly
  100.     
  101.   In addition, a modified version of PS2PK exists on ibis.cs.umass.edu.  I
  102.   have added some hacks to better support really large renderings and a
  103.   primitive "range" facility.
  104.  
  105. 2. TeX Utilities
  106.  
  107.   There are many TeX font utilities.  For TeX related questions, I direct
  108.   you to comp.text.tex or the Info-TeX mailing list.  I will happily list
  109.   any utilities here that the comp.fonts public feels should be present.
  110.   I am listing MetaFont because it is the obvious font-specific component
  111.   of TeX and PKtoSFP because it allows anyone to use PS2PK to create
  112.   LaserJet softfonts.
  113.  
  114.   Liam R. E. Quin <lee@sq.com> is the original author of the MetaFont
  115.   section.  It has been hacked at a bit by norm to make it fit the tone
  116.   of the comp.fonts FAQ.  Assume that norm is responsible for any errors,
  117.   not Liam.
  118.  
  119. 2.1. MetaFont
  120.  
  121. 2.1.1. About MetaFont:
  122.  
  123.        Metafont is a programming language for describing fonts.  It was
  124.        written by Donald Knuth and is documented in
  125.  
  126.      Computers & Typesetting/C: The METAFONTbook
  127.      Knuth, Donald E.
  128.      Addison Wesley, 1986
  129.      ISBN 0-201-13445-4, or 0-201-13444-6 (soft cover)
  130.      Library access: Z250.8.M46K58, or 686.2'24, or 85-28675.
  131.  
  132.        A font written in MetaFont is actually a computer program which,
  133.        when run, will generate a bitmap (`raster') for a given typeface
  134.        at a given size, for some particular device.
  135.  
  136. 2.1.2. What do you need in order to use the fonts:
  137.  
  138.        You cannot print the MetaFont fonts directly (unless you want a
  139.        listing of the program, that is).  Instead, you must generate a
  140.        bitmap font and use that to print something.
  141.  
  142.        If you are using TeX, the sequence of steps is something like
  143.        this:
  144.  
  145.          MF -> metafont -> GF              [ convert MetaFont program
  146.                            TFM              into a bitmapped font ]
  147.   
  148.          GF -> gftopk -> PK             [ represent the bitmapped font
  149.                                           efficiently ]
  150.  
  151.          TEX -> tex -> DVI              [ convert TeX document into
  152.          TFM                              device independent output ]
  153.  
  154.          DVI -> dvi2xxx -> XXX          [ convert DVI to output device
  155.          PK                               format ]
  156.  
  157.          XXX -> printer -> hardcopy     [ print the dvi2xxx output ]
  158.  
  159.        The above steps are idealized.  In reality, you have to make sure
  160.        that the fonts get installed in the correct places and you may
  161.        have to adjust description files, etc.  The friendly folks on
  162.        comp.text.tex can probably get it staightened out for you if you
  163.        can't find a local guru.
  164.  
  165.        If you are not using TeX, it's almost impossible to predict.  At
  166.        some point in the above sequence, you'll insert some other
  167.        conversion program and proceed differently.  Here, for example, is
  168.        how you might use TeX fonts with WordPerfect and a LaserJet
  169.        printer.
  170.  
  171.          PK -> PKtoSFP -> SFP           [ PK to LaserJet softfont ]
  172.  
  173.      SFP -> SFP2Auto -> TFM         [ Make HP AutoFont TFM file ]
  174.  
  175.       SFP -> PTR -> installation     [ Install the fonts into WP ]
  176.      TFM
  177.  
  178.      Use WordPerfect as you normally would.
  179.  
  180. 2.1.3. How to use Metafont fonts with Troff
  181.  
  182.        If, when you run troff, you get the message `typesetter busy', you
  183.        have the original Ossanna-troff, also called otroff.  Chris Lewis
  184.        has a package which will let you use TeX fonts with troff -- it's
  185.        called psroff, and comes with documentation.
  186.  
  187.          ftp: gatekeeper.dec.com (16.1.0.2) pub/misc/psroff-3.0
  188.          ftp: ftp.cs.toronto.edu [128.100.1.105] pub/psroff-3.0/*
  189.  
  190.        If, when you run troff, you get something like this:
  191.  
  192.      x T 300
  193.      x res 300 1 1
  194.  
  195.        you have ditroff.  This is sometimes called titroff or psroff.  In
  196.        this case, you will probably need to do the following:
  197.  
  198.          1) convert the font to your printer's format
  199.          2) generate a width table for the font
  200.          3) add the font to the DESC file for the appropriate device
  201.          4) arrange for troff to download the font
  202.          5) tell troff about the font by running `makedev DESC' in the 
  203.         right place.
  204.  
  205.        If, when you run troff, you get something like this:
  206.  
  207.          X hp(SCM)(CM)(AF)(AD) 300 1 1
  208.      Y P default letter 2550 3300 0 0 90 90 2460 3210
  209.  
  210.        you have sqtroff:
  211.  
  212.          1) convert the font to your printer's format
  213.          2) generate a width table for the font
  214.          3) add the font to the DESC file for the appropriate device
  215.          4) put the font in the appropriate raster directory
  216.          5) tell sqtroff about the font by running `sqmakedev DESC' or 
  217.             `sqinstall'.
  218.  
  219.        In each case, you should be able to get help from your vendor.
  220.  
  221.        Note that Chris Lewis' psroff package has software to make width
  222.        tables for troff from pk files.
  223.  
  224. 2.1.4. Converting between font formats
  225.  
  226.        Conversions to and from pbm and pk format were posted to
  227.        comp.text.tex and to alt.sources on the 9th of August, 1990 by
  228.        Angus Duggan (ajcd@cs.ed.ac.uk).  The program is pbmtopk, and
  229.        there are also at least two patches.
  230.  
  231.        Chris Lewis' psroff package includes a program to go from pk both
  232.        to the HP LaserJet and to PostScript.
  233.  
  234.        John McClain (ophelp@tamvenus.bitnet) has some conversion programs
  235.        for various graphics formats to/and from pk files.
  236.  
  237.        A PC program, CAPTURE, turns HPGL files into PK format, US$130
  238.        from Micro Programs Inc., 251 Jackson Ave., Syosset, NY 11791
  239.        U.S.A.
  240.  
  241.        Metaplot can take pen-plotter files and prouce metafont files;
  242.        contact wilcox@cis.ohio-state.edu
  243.  
  244.        Kinch Cmputer Company sell .pk fonts derived from PostScript
  245.        fonts.  Kinch Computer Co., 501 S. Meadow St.Ithaca, NY 14850
  246.        U.S.A.  telephone: +1 607 273 0222; fax: +1 607 273 0484
  247.  
  248. 2.1.5. Where to get bitmap versions of the fonts
  249.  
  250.        There are archives containing the bitmaps of many of these fonts
  251.        at various sizes and resolutions.  The fonts must have been
  252.        generated for the correct print engine: e.g. write-white or
  253.        write-black.  The archives generally hold only the sizes used by
  254.        TeX.  These are `magstep' sizes, and are not exact point sizes.
  255.        It is probably better to generate them from the Metafont sources
  256.        yourself if you can.
  257.  
  258.        The best place to look for raster fonts was almost certainly
  259.  
  260.          mims-iris.waterloo.edu
  261.  
  262.        but it isn't any more, the fonts have all gone.  Let me know if
  263.        you find them elsewhere.  Most people seem to have moved to using
  264.        PostScript fonts or Bitstream ones instead now.
  265.  
  266.        Some other sites are:
  267.  
  268.          ctrsci.math.utah.edu (128.110.198.1)
  269.          science.utah.edu (128.110.192.2)
  270.          ymir.claremont.edu (134.173.4.23)
  271.  
  272.        The occasional posting of ftp sites to comp.misc and comp.archives
  273.        lists these and several other sites.
  274.  
  275. 2.1.6. Getting fonts by FTP and Mail
  276.  
  277.        If you are using ftp, you will need either the name of the host or
  278.        the Internet number.  For example, to connect to ymir, listed as
  279.        ftp: ymir.claremont.edu [134.173.4.23] you will need to type
  280.        something like
  281.  
  282.          ftp ymir.claremont.edu
  283.  
  284.        If that doesn't work, try using the number:
  285.  
  286.      ftp 134.173.4.23
  287.  
  288.        If that doesn't work, on Unix systems you can use nslookup (it's
  289.        usually /usr/etc/nslookup) to find the host number -- it might
  290.        have changed.  Type the entire host name, and after a few seconds
  291.        nslookup will give you the address.
  292.  
  293.        Once you have connected, you will need to go to the appropriate
  294.        directory, lists its contents, and retrieve the files.
  295.  
  296.        Most of the machines listed here run Unix, and you use "ls" and
  297.        "cd" to list files and to change directories.  Ymir runs VMS, and
  298.        you will have to put square brackets around directory names, like
  299.        [this].
  300.  
  301.        Remember that although Metafont sources are text files, pk fonts
  302.        are not ASCII, and you will have to use binary mode for them.  In
  303.        general, use text mode for README files and *.mf files, and binary
  304.        mode for other font files.  Files ending in .Z are compressed
  305.        binary files -- you will need to use binary mode, and then
  306.        uncompress the files when you get them.
  307.  
  308.  
  309.        You can get files from ymir by sending mail messages to
  310.  
  311.          mailserv@ymir.claremont.edu
  312.  
  313.        For example,
  314.  
  315.          send [tex.mf.misc]cmapl10.mf
  316.  
  317.        will get the file cmapl10.mf from the directory "tex.mf.misc".
  318.        You can't get binary files in this way.
  319.  
  320.        There is an ftp-by-mail BITNET service, BITFTP, for BITNET users.
  321.  
  322.        Before getting large files by mail, please remember to get
  323.        permission from all intervening sites.  Ask your site
  324.        administrator, who can send mail to Postmaster at each site on the
  325.        way if necessary.
  326.  
  327. 2.2. PKtoSFP/SFPtoPK
  328.  
  329.        Convert fonts from TeX PK format to HP LaserJet (bitmap) format.
  330.  
  331. 2.3. Metafont -> PostScript conversion
  332.  
  333.        There are (I believe) two programs that perform this task.  At
  334.        least one of them is called "mf2ps".  If you have any more 
  335.        information about these tools, please let me know.
  336.  
  337. 2.4. PostScript -> Metafont
  338.  
  339.        There is at least one tool for this purpose.  I believe that it
  340.        is called "ps2mf".  If you have any more information about
  341.        these tools, please let me know.
  342.  
  343. 2.5. PKtoPS
  344.  
  345.        Included in the psroff distribution, this utility converts PK 
  346.        fonts into PostScript fonts (bitmaps, I presume).  If you have
  347.        any more information about these tools, please let me know.
  348.  
  349. 2.6. PKtoBDF / MFtoBDF
  350.  
  351.        From the SeeTeX distribution, programs to help previewers under
  352.        X11.
  353.  
  354. 3. MFpic
  355.  
  356.   MFpic is a macro package for including pictures in TeX documents.  The idea
  357.   behind this package is to have Metafont do the actual drawing, and store the
  358.   pictures in a font that TeX can include in the document.  The macros have
  359.   been designed so that the user should never have to learn Metafont to use
  360.   these macros -- the TeX macros actually write the Metafont file for you.
  361.  
  362. 4. GNU Font Utilities
  363.  
  364.   Here is a brief description of the programs included:
  365.  
  366.   * imageto extracts a bitmap font from an image in PBM or IMG format, or
  367.     converts the image to Encapsulated PostScript.
  368.  
  369.   * xbfe is a hand-editor for bitmap fonts which runs under X11.
  370.  
  371.   * charspace adds side bearings to a bitmap font.
  372.  
  373.   * limn fits outlines to bitmap characters.
  374.  
  375.   * bzrto converts a generic outline font to Metafont or PostScript.
  376.  
  377.   * gsrenderfont renders a PostScript outline font at a particular point
  378.     size and resolution, yielding a bitmap font.
  379.  
  380.   * fontconvert can rearrange or delete characters in a bitmap font,
  381.     filter them, split them into pieces, combine them, etc., etc.
  382.  
  383.   * imgrotate rotates or flips an IMG file.
  384.  
  385.   We need volunteers to help create fonts for the GNU project.  You do not
  386.   need to be an expert type designer to help, but you do need to know enough
  387.   about TeX and/or PostScript to be able to install and test new fonts.
  388.   Example: if you know neither (1) the purpose of TeX utility program `gftopk'
  389.   nor (2) what the PostScript `scalefont' command does, you probably need more
  390.   experience before you can help.
  391.  
  392.   If you can volunteer, the first step is to compile the font utilities.
  393.   After that, contact me (karl@gnu.ai.mit.edu).  I will get you a scanned type
  394.   specimen image.  The manual explains how to use these utilities to turn that
  395.   into a font you can use in TeX or PostScript.
  396.  
  397.   You can get the source by ftp from 
  398.     prep.ai.mit.edu [18.71.0.38]:pub/gnu/fontutils-0.5.tar.Z.
  399.  
  400.   And also from these other sites around the world; please check them
  401.   before prep.
  402.  
  403.   United States: wuarchive.wustl.edu   gatekeeper.dec.com:pub/GNU
  404.                  uxc.cso.uiuc.edu      ftp.uu.net:packages/gnu
  405.  
  406.   Europe:        archive.eu.net        src.doc.ic.ac.uk:gnu    ftp.funet.fi
  407.                  nic.funet.fi:pub/gnu  ugle.unit.no            isy.liu.se
  408.                  ftp.diku.dk
  409.  
  410.   elsewhere:     ftp.cs.titech.ac.jp   utsun.s.u-tokyo.ac.jp:ftpsync/prep
  411.                  archie.au:gnu
  412.  
  413.   You can also order tapes with GNU software from the Free Software Foundation
  414.   (thereby supporting the GNU project); send mail to gnu@prep.ai.mit.edu for
  415.   the latest prices and ordering information, or retrieve the file DISTRIB
  416.   from a GNU archive.
  417.  
  418. 5. Font editors
  419.  
  420.   - BDF -
  421.  
  422.     There is a bdf font editor that comes with HP/Apollo workstations.  It's
  423.     called 'edfont'.  It's not the best but it works.
  424.  
  425.   - PK -
  426.  
  427.     The GNU font utilities include an X-based editor called Xbfe which edits
  428.     bitmapped fonts under X.
  429.  
  430.     Eberhard Mattes' emTeX includes PKedit.
  431.  
  432. 6. t1utils
  433.  
  434.   This is a snippet from the README file for I. Lee Hetherington's 
  435.   <ilh@lcs.mit.edu> t1utils package:
  436.  
  437.   t1utils is a collection of simple type-1 font manipulation programs.
  438.   Together, they allow you to convert between PFA (ASCII) and PFB
  439.   (binary) formats, disassemble PFA or PFB files into human-readable
  440.   form, reassemble them into PFA or PFB format.  Additionally you can
  441.   extract font resources from a Macintosh font file (ATM/Laserwriter).
  442.  
  443. -- END OF PART VIII --
  444. --- [cut here] --- FAQ for comp.fonts: section 2, part 2 of 2 ---
  445.